<?php
function encrypt($data, $key)
{
    $key = hex2bin($key);
    return openssl_encrypt($data, 'des-ede3', $key, 0);
}
$key = '31323334353637383132333435363738';
$data = file_get_contents('raw.php.txt');
$result = encrypt($data, $key);
file_put_contents('result.php.txt', $result);
?>
